@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

* {
    box-sizing: border-box;
}

.show-nav {
    margin: 0;
    font-family: 'Lato', sans-serif;
    transition: transform  .3s ease;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background-color: #30336b;
    color: #fff;
    z-index: 100;
    transform: translateX(-200px);
    transition: transform 0.5s ease;
}

.logo {
    padding: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(200, 200, 200, 0.1);
}

nav img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    padding: 20px 15px;
    border-bottom: 2px solid rgba(200, 200, 200, 0.1);
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

nav ul li a:hover {
    border-bottom: 1px solid #fff;
}


/* 头部样式 */
header {
    position: relative;
    padding: 40px 15px;
    background-color: #30336b;
    text-align: center;
    color: #fff;
    font-size: 130%;
    transition: transform 0.5s ease;
}

header p {
    margin: 30px 0; 
}

.nav-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background-color: rgba(0, 0, 0, .3);
    cursor: pointer;
}

.sign-btn {
    padding: 12px 30px;
    border: 0;
    border-radius: 4px;
    background-color: #be2edd;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
}

.container {
    width: 800px;
    max-width: 100%;
    padding: 15px;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.nav-show {
    transform: translateX(0);
}

.show {
    transform: translateX(200px);
}
